package com.lovo.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
@NoArgsConstructor
@ApiModel(value = "供货批次主键",description = "供货批次主键")
@TableName("psc_orderinfo")
public class OrderInfoBean {
    @TableId(value = "pk_orderInfoId",type = IdType.AUTO)
    @ApiModelProperty("供货批次主键")
    private long orderInfoId;
    @TableField("fk_orderIdNum")
    private String orderIdNum;
    @TableField("oi_orderPrice")
    @ApiModelProperty("订单金额")
    private float orderPrice;
    @TableField("oi_status")
    @ApiModelProperty("0-已供货  1-已入库 2-已退货")
    private int status;
    @TableField("oi_idNum")
    @ApiModelProperty("供货批次编号")
    private String idNum;
    @TableField(exist = false)
    @ApiModelProperty("供货商品集合")
    private List<OrderProductBean> productBeanList;

    @Override
    public String toString() {
        return "OrderInfoBean{" +
                "orderInfoId=" + orderInfoId +
                ", orderIdNum='" + orderIdNum + '\'' +
                ", orderPrice=" + orderPrice +
                ", status=" + status +
                ", idNum='" + idNum + '\'' +
                '}';
    }
}
